package com.koocloud.electroplatemanage.mapper;

import com.koocloud.electroplatemanage.pojo.StorageVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface StorageMapper {


    //根据工单号查看一条记录
    StorageVo  selectByWorkOrderNumber(String workOrderNumber);
    //进入下一步的状态
    int changeState(String workOrderNumber);
    //查询所有记录
    List<StorageVo> selectAllData(@Param("beginTime")String beginTime,@Param("endTime")String endTime,StorageVo storageVo);
    //插入一条记录
    int insert(StorageVo storageVo);
    //逻辑删除一条记录
    int delete(@Param("workOrderNumber")String workOrderNumber, @Param("deleteFlag") String deleteFlag);
    //修改一条记录
    int update(StorageVo storageVo);
    //根据工单号查询记录数
    int selectWorkOrderNumberCount(String workOrderNumber);
}
